import Http from '@/http'

export function listApi(){
    return Http.get('device/list')
}

export function bindApi(id){
    return Http.post('device/bind', {id})
}

export function delApi(id){
    return Http.post('device/unbind', {id})
}


export function startCleanApi(id:number) {
    return Http.post('device/startClean', {id})
}

export function queryCleanResApi(id:number) {
    return Http.get('device/cleanRes/' + id)
}


export function cleanRecordPageApi(params:any){
    return Http.post('device/cleanRecord/page', params)
}


export function setMaxFlowApi(id:number) {
    return Http.post('device/setMaxFlow', {id})
}

export function querySetMaxFlowResApi(id:number) {
    return Http.get('device/setMaxFlowRes/' + id)
}